﻿/**
 * @auth chunning.xu
 * @purpose include tracking methods for google analyze
 * @date 2008-11-25 
 * 
 * 	
*/
package com.components.net.tracking.TrackingServer
{
	import com.components.net.ComunicateJS;
	import com.components.net.tracking.TrackingData;
	
	public class GoogleAnalyze implements I_TrackingServer
	{
		//START
		
		//property
		
		private const STR_JS_TRACKINGFUNCTION:String = "sendData2Google";
		
		//CONSTRUCTOR
		public function GoogleAnalyze()
		{
						
			
		}
		
		//methods
		
		//implement abstract method in I_TrackingServer
		public function sendData(trackingData:TrackingData):void
		{
			
			if( trackingData.path.length > 0)
			{
													
				ComunicateJS.call(STR_JS_TRACKINGFUNCTION,trackingData.path);
			
			}
						
		}
		
		
		
		//END
	}
}